<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let Vue = {
                msg: "消息"
        }
        console.log(Vue.msg);
        Vue.b = "新属性";
        console.log(Vue.b);
        Object.defineProperty(Vue,'c',{
            get: function(){
                return "c的值"
            },
            set:function(newVal){
                this.b = newVal;
            }
        })
        console.log(Vue.c);
        Vue.c = "c的新值"
        console.log(Vue.b);
    </script>
</body>
</html>